<?php
require(__DIR__ . '/function.php');
$class_list = require(__DIR__ . '/conf/classes.php');
$path_list = ['controllers', 'models'];
spl_autoload_register(function($class) use ($class_list,$path_list){
	if (!empty($class_list[$class])) {
		require($class_list[$class]);
	}else{
		throw new \Exception('加载' . $class . '类文件失败!');
	}
});